class VehicleModel < ActiveRecord::Base
	has_many :vehicles
	#has_many :tour_groups, :through => :vehicles
  
  validates_presence_of :name, :message => "请输入车型名称"
  validates_uniqueness_of :name, :message => "已经存在同名车型"
end
